package classLoader;

/**
 * @author Jamie Nie
 * @title: Test1
 * @projectName jvm-exercise
 * @Slogan: The harder you work, the more luck you have.
 * @date 2021/6/19 23:20
 * @description: 当我们用java命令运行某个类的main函数启动程序时，首先需要通过类加载器把主类加载到JVM
 * javap -v Math.class  查看字节码文件
 */
public class Math {
    public static final int INITDATA = 666;
    public static final User user = new User();

    public int compute(){
        int a = 1;
        int b = 2;
        int c = a * b;
        return c;
    }

    public static void main(String[] args) {
        Math math = new Math();
        math.compute();
    }

}

class User {
    int age;
    String name;
}